/*
 * @Author: spark
 * @Date: 2021-06-21 14:12:01
 * @LastEditTime: 2021-06-28 17:37:44
 * @LastEditors: spark
 * @Description: 一个持续与bug做抗争的程序员
 * email: spark.xiaoyu@qq.com
 */
import { getToken } from '@/utils/cookies'

export type UserState = {
    token: string | undefined,
    avatar: string,
    roles: string[]
}

export const state: UserState = {
    roles: [],
    token: getToken() || '',
    avatar: ''
}